package edu.taru.office.service.impl;

import edu.taru.office.mapper.UrlMapper;
import edu.taru.office.pojo.Url;
import edu.taru.office.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 首页管理
 */
@Service
public class IndexServiceImpl  implements IndexService {

    @Autowired
    UrlMapper urlMapper;

    @Override
    public List<Url> selectMenus(String username) {
        List<Url>  menus =urlMapper.selectMenusByUserName(username);
        return menus;
    }
}
